package com.amumu.drama.common.modules.aliyunoss.config;


import com.amumu.drama.common.modules.aliyunoss.processor.AliOssProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;

/**
 * @author sunzhuang
 * @date 2024/6/17 15:31
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */
public class OssAutoConfiguration implements Ordered {

    @Bean
    public AliOssProcessor ossProcessor(AliyunOssConfig config) {
        return new AliOssProcessor(config);
    }

    @Override
    public int getOrder() {
        return Ordered.LOWEST_PRECEDENCE;
    }
}
